package cn.hp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hp.dao.OrderDao;
import cn.hp.domain.Order;
@Service
@Transactional
public class OrderServiceImpl implements OrderService {
	@Autowired
	private OrderDao orderDao;
	
	
	//全查
	@Override
	public List<Order> findAll() {
		return orderDao.findAll();
	}

	//添加订单
	@Override
	public void save(Order order) {
		orderDao.save(order);
	}
	
	
	
}
